<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=zychclass_name(SortID,SortType)%>_<%=zych_home%></title>
<meta name="keywords" content="<%=zych_keywords%>" />
<meta name="description" content="<%=zych_description%>" />
<link href="<%=zych_templatedir%>css/style.css" rel="stylesheet" type="text/css"/>
<link href="<%=zych_templatedir%>css/Message.time.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<%=dir%>js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<%=zych_templatedir%>js/menu.js"></script>
<script type="text/javascript" src="<%=zych_templatedir%>js/superslide.2.1.js"></script>
<script type="text/javascript" src="<%=zych_templatedir%>js/timeline.message.js"></script>
<script type="text/javascript">
function check(form) {
//	var ID=<%=Session("firstecode") %>
	if(form.body.value=="") {//判断选中时执行
		  alert("留言内容不能为空!");
		  form.body.focus();
		  return false;  //注释后继续执行
	 }
	 if(form.qq.value=="") {//判断选中时执行
		  alert("联系QQ不能为空，请放心您的QQ只有管理员能看到!");
		  form.qq.focus();
		  return false;  //注释后继续执行
	 }
	 if(form.qq.value=="") {//判断选中时执行
		  alert("联系QQ不能为空，请放心您的QQ只有管理员能看到!");
		  form.qq.focus();
		  return false;  //注释后继续执行
	 }
	 if(form.name.value=="") {//判断选中时执行
		  alert("昵称不能为空！");
		  form.name.focus();
		  return false;  //注释后继续执行
	 }
	 if(form.VerifyCode.value=="") {//判断选中时执行
		  alert("验证码不能为空!");
		  form.VerifyCode.focus();
		  return false;  //注释后继续执行
	 }
return true;
}</script>
</head>
<!--##联系我们##-->
<body>
<!--#include file="top.asp"-->
<div id="mainpd">
<div class="in_title"><p><%=zychclass_pd(SortID,SortType)%></p><a class="more"><%=zych_daohangnr%></a></div>
<div class="position">
<div class="Contact"><div class="tu"><img alt="<%=zych_home%>" src="<%=zych_logo%>"  width="350" onerror="this.src='<%=dir%>images/nologo.jpg'"></div><ul>
<li>联 系 人：<%=zych_name%></li>
<li>联系手机：<%=zych_Phone%></li>
<li>联系电话：<%=zych_tel%></li>
<li>联 系 QQ：<%=zych_contact_qq%></li>
<li>传真号码：<%=zych_fax%></li>
<li>E-MAIL ：<%=zych_mail%></span></li>
<li>官方网站：<%=zych_url%></li>
<li>公司地址：<%=zych_dz%></li>
<li>邮政编码：<%=zych_Postal%></li>
</ul>
</div>
<div class="Map"><iframe src="<%=dir%>include/map.asp?z_mc=<%=ditu_mc%>&z_zb=<%=ditu_Coordinate%>&z_sm=<%=ditu_sm%>&z_dz=<%=zych_dz%>" scrolling="no" name="mapif" type="1" frameborder="0" height="400" width="100%"></iframe>
</div>
</div></div>
<div id="mainpd">
<div class="message"><div class="title">
<p>当前共有<b><%=conn.execute("select count(*) from Message")(0)%></b>条留言...<a> <span id="ipShow"></span></a></p>
<script charset="gb2312" src=http://<%=zurl%>/Include/IP/ip.asp?action=b></script>
</div>
<div class="form">
<form name="add" onsubmit="return check(this)" action="/Include/Click.asp?action=bookadd" method="post">
<textarea name="body" id="body" class="body" cols="50" placeholder="这里输入您的留言内容..." maxlength="280"></textarea>
<div class="putbox">
<div class="prompt">您已输入<span style="color:#C00" id="info"> </span>/280 <font color=#ff0000>*</font></div>
<input name="qq" type="text" class="text qq fl"  maxlength="20" placeholder="联系QQ" />
<input name="name" id="name" type="text" class="text user fl"  maxlength="20" placeholder="用户名/昵称/邮箱..." />
<input name="VerifyCode" type="text" class="text code fl"  maxlength="4" placeholder="图形码..." />
<img src="<%=dir%>Include/safecode.asp" alt="看不清,请点击刷新验证码!" class="codeimg fl" onClick="this.src='<%=dir%>Include/safecode.asp?t='+(new Date().getTime());" />
<input name="sh" type="hidden" value="<%=booksh%>" size="10"/>
<input name="add" type="hidden" id="ipadd" value="" size="10"/>
<button class="submit fr" type="submit">发布</button>
</div>
</form>
<script charset="gb2312" src=http://<%=zurl%>/Include/ip/ip.asp?action=d&id=ipadd&way=value></script>
<script> 
/*标题字数*/
$(function(){
document.getElementById("info").innerText =0; 
document.getElementById("body").onkeyup = function() {document.getElementById("info").innerText = document.getElementById("body").value.length; } 
});
</script>
</div>
</div>
</div>
</div>
<!--留言时间轴开始-->
<!--留言时间轴开始-->
<div class="demo">
<div class="history"><div class="more"> </div>
<div class="history-date">
<h2><a class="first" href="#nogo">最新留言</a></h2>
<ul>
<%set rs=server.createobject("adodb.recordset") 
exec="select top 5 * from Message where sh=1 order by id desc"
rs.open exec,conn,1,1
if rs.eof then
response.Write "<div clacc=""onxx"">暂无留言记录！</div>"
end if
do while not rs.eof
i=i+1
if IsNull(rs("hf")) or trim(rs("hf")&"")="" then
hf="<font color=#FF0000>此留言暂未回复！</font>"
else
hf=""&rs("hf")&""
end if%>
<li><h3><%=formatDate(rs("data"),3)%><span><%=formatDate(rs("data"),12)%></span></h3>
<span class="leftcorner"></span>
<dl><h4><span class="fl"><i>F<%=i%>#</i> <%=rs("name")%></span> <span class="fr"># IP：<%=stvalue(rs("ip"),6)%>&nbsp;&nbsp;&nbsp;&nbsp; 来自：<%=rs("add")%>&nbsp;&nbsp; <%=rs("data")%></span> </h4>
<p class="con"><%=stvalue(DelHtml(rs("body")),200)%></p>
<h5><b>Reply：</b><%=hf%></h5>
</dl>
</li>
<%rs.movenext
Loop
rs.close
set rs=nothing%>
      </ul>
    </div>
  </div>
</div>
<!--尾部开始 -->
<!--#include file="bottom.asp"-->
<!--尾部结束 -->
</body>
</html>
